import request from '@/utils/request'

// 查询传感器数据列表
export function listSensorlog(query) {
  return request({
    url: '/iot/sensorlog/list',
    method: 'get',
    params: query
  })
}

// 查询传感器数据详细
export function getSensorlog(id) {
  return request({
    url: '/iot/sensorlog/' + id,
    method: 'get'
  })
}

// 新增传感器数据
export function addSensorlog(data) {
  return request({
    url: '/iot/sensorlog',
    method: 'post',
    data: data
  })
}

// 修改传感器数据
export function updateSensorlog(data) {
  return request({
    url: '/iot/sensorlog',
    method: 'put',
    data: data
  })
}

// 删除传感器数据
export function delSensorlog(id) {
  return request({
    url: '/iot/sensorlog/' + id,
    method: 'delete'
  })
}
